package com.distributer.delayqueue.delayqueue.event;

import com.distributer.delayqueue.job.JobMsg;

public class RedisJobTraceEvent implements JobEvent{

	private final JobMsg jobMsg;
	
	private  RdbOperation rdbOperation;
	
	public RedisJobTraceEvent(JobMsg jobMsg){
		this.jobMsg = jobMsg;
	}
	
	public RedisJobTraceEvent(JobMsg jobMsg,RdbOperation rdbOperation){
		this.jobMsg = jobMsg;
		this.rdbOperation = rdbOperation;
	}
	
	@Override
	public JobMsg getJob() {
		return jobMsg;
	}
	
	public RdbOperation getRdbOperation() {
		return rdbOperation;
	}

}
